home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Columbia Kermit
/
kermit.zip
/
newsgroups
/
misc.20031118-20041115
/
000041_fdc@columbia.edu_Wed Dec 3 12:24:19 2003.msg
< prev
next >
Wrap
Internet Message Format
|
2020-01-01
|
4KB
Path: newsmaster.cc.columbia.edu!not-for-mail
From: Frank da Cruz <fdc@columbia.edu>
Newsgroups: comp.os.linux.misc,comp.protocols.kermit.misc
Subject: Re: Serial Telnet to PBX Switch
Followup-To: comp.os.linux.misc
Date: 3 Dec 2003 16:56:33 GMT
Organization: Columbia University
Lines: 82
Message-ID: <slrnbss5e1.e02.fdc@sesame.cc.columbia.edu>
References: <1a78c305.0312021949.62bab77d@posting.google.com>
Reply-To: fdc@columbia.edu
NNTP-Posting-Host: sesame.cc.columbia.edu
X-Trace: newsmaster.cc.columbia.edu 1070470593 12779 128.59.59.56 (3 Dec 2003 16:56:33 GMT)
X-Complaints-To: postmaster@columbia.edu
NNTP-Posting-Date: 3 Dec 2003 16:56:33 GMT
User-Agent: slrn/0.9.7.4 (SunOS)
Xref: newsmaster.cc.columbia.edu comp.os.linux.misc:615177 comp.protocols.kermit.misc:14717
In article <1a78c305.0312021949.62bab77d@posting.google.com>,
Chris McKeever wrote:
: I have been doing some searching for how I can connect from a linux
: box to our phone PBX. Below is a thread that helped me get a good
: portion of the way, but I am still a bit stuck.
:
: I have been successful in connecting through the serial port using
: minicom or kermit to the PBX from the linux command line. I however
: am faced with the issue that some of the commands that I want to
: perform just wont work.
:
: The PBX asks what type of terminal, the choices are:
: 513,715,4410,4425,VT220
:
: It seems that the most vanilla of these is the VT220.
:
If you are running Kermit from the Console window, your terminal
type is "Linux console". If you are running Kermit in an xterm or
similar window, your terminal type depends on the xterm program.
It's vt220 if you are using Xfree86 xterm:
http://dickey.his.com/xterm/xterm.html
Since that's what the PBX wants, that's what you should use.
: Kermit and minicom work, but I do not have the F3 key, which 'sends'
: the changes into the switch, for the most part, everything else is
: functional.
:
: ** Kermit connects, but I have no backspace - believe it emulates a
: VT220, so I am confused as to this..am I mistaken here?
:
In Unix (including Linux), Kermit is a communication program, not a
terminal emulator (as it is in DOS or Windows). This is explained at
length here:
http://www.columbia.edu/kermit/ckfaq.html#term
Your terminal emulator is the console or X window in which you are running
Kermit. The same is true for other Unix-based terminal programs (cu, tip,
telnet, ssh, etc) and I believe also of minicom.
: So I am trying to figure out how to get Kermit to behave nicely with
: the function keys and the backspace, or minicom to work with the
: function keys.
:
About Backspace, see:
http://www.columbia.edu/kermit/backspace.html
and after reading the explanatory material, find the answer in the
section, "When C-Kermit Is the Client".
Function keys are another story. Unix applications (other than X-based
ones) can't see the function keys, so this must be handled by your xterm
setup, normally in the xmodmap configuration file. You can find some
examples here:
http://www.columbia.edu/kermit/ckubwr.html
(search for "xmodmap" -- there are various references throughout the
document.) You have to find out what characters a particular F key sends,
and then map the key to send them in in .xmodmaprc or whatever. If you
are using Xfree86 xterm (which does indeed emulate the vt220) then the
F keys should already be set up. Just make sure you are pushing the
right one. For example the DEC "Do" key is F16 (not F3).
On a real DEC terminal, F16 ("Do") sends ESC [ 29 ~ (that's Escape,
left bracket, 2, 9, and tilde, in sequence with no spaces).
Since you are probably using a PC keyboard, you'll find that there is no
F15 key -- PC F-keys only go up to F12, but DEC keyboards go up to F20.
So usually there is a mapping like Shift F1 = F13, Shift F2 = F14, etc.
Some people find this so annoying that they go out and purchase DEC
keyboards for their PCs :-) But it can all be handled in xmodmap too.
In Windows or DOS, you could do the mapping directly in Kermit, where
Kermit really is a terminal emulator since it can get (more or less)
directly at the keyboard and screen.
- Frank